/**
 * 钩子组件，用来确定弹窗等渲染完成
 */
import React from "react";

export interface RenderDoneProps {
  onInit?: () => void;
  onUpdate?: () => void;
}

class RenderDone extends React.PureComponent<RenderDoneProps> {
  componentDidMount() {
    this.props.onInit?.();
  }
  componentDidUpdate() {
    this.props.onUpdate?.();
  }

  render() {
    return <></>;
  }
}

export default RenderDone;
